$OpenBSD: patch-src_lib_Language_pm,v 1.3 2015/01/28 21:21:13 landry Exp $
Don't use setlocale(), poor support.
--- src/lib/Language.pm.orig	Wed Sep 10 16:08:55 2014
+++ src/lib/Language.pm	Wed Jan 28 12:13:17 2015
@@ -165,28 +165,6 @@ sub SetLang {
 	$lang = &Locale2Lang($locale);
     }
    
-    ## Set Locale::Messages context
-    my $locale_dashless = $locale.'.utf-8';
-    $locale_dashless =~ s/-//g;
-    foreach my $type (&POSIX::LC_ALL, &POSIX::LC_TIME) {
-	my $success;
-	foreach my $try ($locale.'.utf-8',
-			 $locale.'.UTF-8',  ## UpperCase required for FreeBSD
-			 $locale_dashless, ## Required on HPUX
-			 $locale,
-			 $lang
-			 ) {
-	    if (&setlocale($type, $try)) {
-		$success = 1;
-		last;
-	    }	
-	}
-	unless ($success) {
-	    &do_log('err','Failed to setlocale(%s) ; you either have a problem with the catalogue .mo files or you should extend available locales in  your /etc/locale.gen (or /etc/sysconfig/i18n) file', $locale);
-	    return undef;
-	}
-    }
-    
     $ENV{'LANGUAGE'}=$locale;
     ## Define what catalogs are used
     &Locale::Messages::textdomain("sympa");
